package cn.trigram.example.designpattern.fsm.listener;


import cn.trigram.example.designpattern.fsm.StateContext;
import cn.trigram.example.designpattern.fsm.event.AbstractEvent;

/**
 * 监听状态已改变时
 */
public interface Listener<T extends AbstractEvent> {
  boolean supportType(Class eventClass);

  void onEvent(AbstractEvent event, StateContext stateContext);
}